# _*_ encoding:utf-8 _*_

from rest_framework.viewsets import ModelViewSet
from rest_framework.permissions import IsAdminUser

from goods.models import SpecificationOption
from meiduo_admin.serializers.option_serializers import SpecOptionSerializer
from meiduo_admin.paginations import MyPage


class SPUSpecOptionView(ModelViewSet):

    permission_classes = [IsAdminUser]

    queryset = SpecificationOption.objects.all()
    serializer_class = SpecOptionSerializer
    pagination_class = MyPage



